package com.yantong.mapper;

import com.yantong.pojo.Salesman;
import com.yantong.pojo.SalesmanExample;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;
import java.util.Map;

public interface SalesmanMapper {
    long countByExample(SalesmanExample example);

    int deleteByExample(SalesmanExample example);

    int deleteByPrimaryKey(Long id);

    int insert(Salesman record);

    int insertSelective(Salesman record);

    List<Salesman> selectByExample(SalesmanExample example);

    Salesman selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") Salesman record, @Param("example") SalesmanExample example);

    int updateByExample(@Param("record") Salesman record, @Param("example") SalesmanExample example);

    int updateByPrimaryKeySelective(Salesman record);

    int updateByPrimaryKey(Salesman record);

    int countByMap(Map<String, Object> map);

    List<Salesman> selectByMap(Map<String, Object> map, RowBounds rowBounds);

    Salesman selectNotDeleteByKey(Long salesmanId);

    Salesman getByUserId(Long userId);
}